﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BeniBastanYaratWinFormProject
{
    public partial class PersonelKayit : Form
    {
        public PersonelKayit()
        {
            InitializeComponent();
        }

        private void çıktıAlToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void personelListesiToolStripMenuItem_Click(object sender, EventArgs e)
        {
              PersonelListesi perList = Application.OpenForms["MyPersonel"] as PersonelListesi;
          
            if (perList == null)
            {
                PersonelListesi frm = new PersonelListesi();
                frm.MdiParent = this;
                frm.Name = "MyPersonel";
                frm.Show();
              
            }
            else
            {
                if (perList.WindowState ==  FormWindowState.Minimized)
                {
                    perList.WindowState = FormWindowState.Normal;
                }
                perList.Activate();
              
            }
        } 
            
        
        
    }
}
